package com.itheima.service;

import com.itheima.constant.PageResult;
import com.itheima.constant.QueryPageBean;
import com.itheima.domain.Menu;

import java.util.List;

/**
 * @author Zhang_Han
 * @version 1.0
 * @date 2020/10/14 20:46
 */
public interface MenuService {

    //分页查询;
    public PageResult findPage(QueryPageBean queryPageBean);

    //查询全部;
    public List<Menu> findAll();

    //添加;
    public void add(Menu menu);

    //删除
    public void deleteByid(Integer id);

    //根据ID查询;
    public Menu findByid(Integer id);

    //修改数据;
    public void update(Menu menu);

    List<Menu> getMenu(String name);
}
